package org.example.dao.impl;

import org.example.dao.BookDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository
public class BookDaoimpl implements BookDao {
    @Value("${name}") //注入简单类型@Value(${})
private String name;

    @Override
    public void save() {

        System.out.println("save book"+" 名字"+name);
    }
}
